<?php slot('title', __('Request types list')) ?>
<?php slot('options') ?>
    <a href="<?php echo url_for('requestTypes/new') ?>"><img src="/sf/sf_admin/images/add.png" alt="add" /></a><a href="<?php echo url_for('requestTypes/new') ?>"><?php echo __('Add a new request type') ?></a>
<?php end_slot() ?>

<table class="listing">
  <thead>
    <tr>
      <th><?php echo __('Id') ?></th>
      <th><?php echo __('Description') ?></th>
      <th class="actions"><?php echo __('Actions') ?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($request_types as $request_type): ?>
    <tr>
      <td><?php echo $request_type->getId() ?></td>
      <td><?php echo $request_type->getDescription() ?></td>
      <td class="actions">
        <a href="<?php echo url_for('requestTypes/edit?id='.$request_type->getId()) ?>"><img src="/sf/sf_admin/images/edit.png" alt="edit" /></a>
        <?php echo link_to('<img src="/sf/sf_admin/images/cancel.png" alt="delete" />', 'requestTypes/delete?id='.$request_type->getId(), array('method' => 'delete', 'confirm' => __('Are you sure?'))) ?>
      </td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
